/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.data.entity;

import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户积分日志Entity
 * @author 罗天文
 * @version 2018-03-20
 */
public class HkUserIntegralLog extends DataEntity<HkUserIntegralLog> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户
	private String integral;		// 积分
	private String type;		// 类型
	private String lastIntegral;		// 剩余积分
	
	public HkUserIntegralLog() {
		super();
	}

	public HkUserIntegralLog(String id){
		super(id);
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=11, message="积分长度必须介于 0 和 11 之间")
	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	
	@Length(min=0, max=1, message="类型长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=11, message="剩余积分长度必须介于 0 和 11 之间")
	public String getLastIntegral() {
		return lastIntegral;
	}

	public void setLastIntegral(String lastIntegral) {
		this.lastIntegral = lastIntegral;
	}
	
}